module.exports = app => {
    const mongoose = require('mongoose')
    // mongodb://admin:20210731_123456@119.45.209.200/admin
    mongoose.connect('mongodb://localhost:27017/node-vue-moba', {
        useNewUrlParser: true
    })

    // const conn = mongoose.connection
    // conn.on('connected', () => { // 连接成功回调
    //     console.log("数据库连接成功~")
    // })
}